/**
*  @brief display the weibo struct,you can using in unittest
*  @file  UnitTestDisplay.h
*  @author welbon 
*  @Email < libo.weng@gmail.com >
*
* Copyright (C) 1996-2010 SINA Corporation, All Rights Reserved
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* 
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/

#pragma once
#ifndef __UNITTEST_DISPLAY_H__
#define __UNITTEST_DISPLAY_H__

#include "WeiboParseStruct.h"


#define PRINT_TEXT printf

#define CACULATE_INDENT(i,s,l)\
	caculate_indent( i,s,l);\

#define PRINT_INDENT(s)\
	if(s && *s != 0){ printf("%s ",s);}\


extern void print_status(void *pStatus,int ii = 0);
extern void print_user(void *pUser,int ii = 0);
extern void print_unread(void *pUnread,int ii= 0);
extern void print_comment(void *pComment,int ii= 0);
extern void print_commentcount(void *pComCount,int ii= 0);
extern void print_directmessage(void *pDirMessage,int ii = 0) ;
extern void print_geo(void *pGeo,int ii = 0);
extern void print_limited(void *pLimit,int ii = 0 );
extern void print_ids(void *pIDs,int ii = 0 );


#endif //__UNITTEST_DISPLAY_H__